<?php
class CartController extends AppController{
    public function index()
    {
        $carts = array();
        if($this->Session->read('carts'))
            $carts = $this->Session->read('carts');
    
        $this->set('carts', $carts);
        
        $breadcrumbs[] = array('title' => 'Danh mục sản phẩm', 'link' => 'danh-muc-san-pham');
        $breadcrumbs[] = array('title' => 'Giỏ hàng', 'link' => 'gio-hang');
        $this->set('breadcrumbs', $breadcrumbs);
        
        $meta_title = 'Giỏ hàng';
        $this->set('meta_title', $meta_title);
        
        $has_html = '';
        $this->set('has_html', $has_html);
        $header_menu_sidebar['title'] = 'Giỏ hàng';
        $header_menu_sidebar['link'] = 'gio-hang';
        $this->set('header_menu_sidebar', $header_menu_sidebar);
        $menu_sidebar = array();
        $this->set('menu_sidebar', $menu_sidebar);
    }
}